import {
  http
} from '@/utils/http.js';


// 获取科室信息
export const getDepartMentListApi = () => {
  return http.get("/dep/all")
}

// 获取就诊信息和抵扣信息
export const getConsultInfoApi = (data) => {

  return http.get('/patient/consult/order/pre', {
    params: data
  }, {
    header: {
      "Content-Type": "application/json"
    }
  })
}

// 创建订单
export const createPayInfoApi = (data) => {
  return http.post('/patient/consult/order', data, {
    header: {
      "Content-Type": "application/json"
    }
  })
}